Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.

fix: Events related to different process instances may be collected in one bunch #257

Merged
merged 6 commits into from
Mar 15, 2019

Conversation

igdianov
Copy link
Contributor

@igdianov igdianov commented Feb 28, 2019

This PR fixes common problem that maps execution attributes for all events types as well as fixes the issue that mixes execution context attributes for multiple executions in the same transaction.

This test ensures the execution attributes are mapped correctly for subprocesses as well as other events

Unfortunately, I had to remove execution attribute headers from message itself as there is no way to use same headers for different executions for events generated in a single transactions, so message headers will have only common runtime bundle properties...

Fixes Activiti/Activiti#2558

@igdianov igdianov self-assigned this Feb 28, 2019
@igdianov igdianov added the bug label Feb 28, 2019
@igdianov igdianov changed the title Resolve Events related to different process instances may be collected in one bunch fix: Events related to different process instances may be collected in one bunch Feb 28, 2019
@igdianov igdianov changed the title fix: Events related to different process instances may be collected in one bunch fix: Events related to different process instances may be collected in one bunch [WIP] Feb 28, 2019
@igdianov igdianov force-pushed the igdianov-2558-audit-events-clash branch from 1bb6a19 to 6581f10 Compare March 1, 2019 13:27
@igdianov igdianov changed the title fix: Events related to different process instances may be collected in one bunch [WIP] fix: Events related to different process instances may be collected in one bunch Mar 1, 2019
@igdianov igdianov force-pushed the igdianov-2558-audit-events-clash branch 2 times, most recently from 0e91bbd to 813f7dd Compare March 4, 2019 19:51
Copy link
Collaborator

@erdemedeiros erdemedeiros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me.

@igdianov igdianov force-pushed the igdianov-2558-audit-events-clash branch from 813f7dd to 90bea3a Compare March 7, 2019 06:57
@codecov
Copy link

codecov bot commented Mar 7, 2019

Codecov Report

Merging #257 into develop will decrease coverage by 0.23%.
The diff coverage is 45.45%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop     #257      +/-   ##
=============================================
- Coverage      73.41%   73.18%   -0.24%     
  Complexity         5        5              
=============================================
  Files            114      114              
  Lines           1471     1484      +13     
  Branches          42       47       +5     
=============================================
+ Hits            1080     1086       +6     
- Misses           355      359       +4     
- Partials          36       39       +3
Impacted Files Coverage Δ Complexity Δ
...vents/message/AuditProducerRoutingKeyResolver.java 100% <ø> (ø) 0 <0> (ø) ⬇️
...rs/MessageProducerCommandContextCloseListener.java 86.95% <100%> (-1.94%) 0 <0> (ø)
...vents/listeners/ProcessEngineEventsAggregator.java 48.78% <42.85%> (+2.94%) 0 <0> (ø) ⬇️
...essage/ExecutionContextMessageBuilderAppender.java 84.84% <0%> (+3.03%) 0% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e8a869...a9d96ad. Read the comment docs.

@igdianov igdianov force-pushed the igdianov-2558-audit-events-clash branch from 90bea3a to a9d96ad Compare March 15, 2019 14:33
@erdemedeiros erdemedeiros removed the request for review from CTI777 March 15, 2019 15:14
@erdemedeiros erdemedeiros merged commit d2eb9e8 into develop Mar 15, 2019
@erdemedeiros erdemedeiros deleted the igdianov-2558-audit-events-clash branch March 15, 2019 15:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Events related to different process instances may be collected in one bunch
3 participants